/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package kata;
import java.util.*;

/**
 *
 * @author Ronald
 */
public class Character
{
    String name;
    String party;
    Weapon weapon;
    Armor armor;
    int strength;
    int dexterity;
    int constitution;
    
    public Character()
    {
        
    }
    
    public Character(String newName, String newParty, Weapon newWeapon, Armor newArmor, int newStrength, int newDexterity, int newConstitution)
    {
        this.name = newName;
        this.party = newParty;
        this.weapon = newWeapon;
        this.armor = newArmor;
        this.strength = newStrength;
        this.dexterity = newDexterity;
        this.constitution = newConstitution;
    }
    public void createCharacter()
    {
        Scanner in = new Scanner(System.in);
        System.out.println("Enter Charcater Name: ");
        name = in.next();       
        System.out.println("Choose your players party (1 or 2): ");
        party = in.next();
        if(party.equalsIgnoreCase("1"))
        {
            party = "Mindless Zombies";
        }else if(party.equalsIgnoreCase("2")) 
        {
            party = "Killer Warriors";
        }
        strength = (int)(Math.random() * 20) + 1;
        dexterity = (int)(Math.random() * 20) + 1;
        constitution = (int)(Math.random() * 20) + 1;
        armor = new Armor();
        armor.createArmor();
        weapon = new Weapon();
        weapon.createWeapon();
    }
    public void printCharacter()
    {
        System.out.println("================================");
        System.out.println("Character Stats");
        System.out.println("================================");
        System.out.println("Characters Name: " + name);
        System.out.println("Characters Party: " + party);
        System.out.println("Characters Strength: " + strength);
        System.out.println("Characters Dexterity: " + dexterity);
        System.out.println("Characters Constitution: " + constitution);
        System.out.println("Armors Name: " + armor.name);
        System.out.println("Armors Protection: " + armor.protection);
        System.out.println("Armors Encumbrance: " + armor.encumbrance);
        System.out.println("Weapons Name: " + weapon.name);
        System.out.println("Weapons Base: " + weapon.base);
        System.out.println("Weapons Damage: " + weapon.damage);
    }
}